package com.itoken.admin.service;

import com.itoken.admin.service.impl.AdminServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.PostConstruct;

/**
 * @author
 * @date 2020/3/18
 */
@FeignClient(value = "itoken-admin-service", fallback = AdminServiceImpl.class)
public interface IAdminService {

    /**
     * 登录
     * @param loginCode
     * @param password
     * @return
     */
    @GetMapping("/login")
    public String login(@RequestParam("loginCode") String loginCode, @RequestParam("password") String password);
}
